
public class QuackCounter implements IQuackable {
	
	static int numberOfQuacks;
	
	IQuackable duck;
	
	public QuackCounter(IQuackable duck)
	{
		this.duck = duck;
	}
	
	public void quack() {
		duck.quack();
		numberOfQuacks++;
	}
	
	public static int getQuacks()
	{
		return numberOfQuacks;
	}

}
